package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/5/17 14:19
 * @since v1.0
 */
@Getter
public enum ContractProduceEnum {
    /**
     *
     */
    WAIT_PURCHASE(0,"enum.contractProduce.name.wait_purchase"),
    WAIT_PRODUCE(1,"enum.contractProduce.name.wait_produce"),
    ;

    ContractProduceEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    private Integer code;
    private String name;

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
